package com.cskaoyan.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 字符串返回值作为视图名
 *
 * @author stone
 * @date 2021/11/23 14:31
 */
@Controller
@RequestMapping("view")
public class ViewNameController {

    @RequestMapping("name")
    public String viewName(Model model) {
        model.addAttribute("value", "songge");
        return "/viewname.jsp";
    }
}
